<!DOCTYPE html>
<html class="x-admin-sm">
<head>
    <meta charset="UTF-8">
    <title>用户管理列表</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport"
          content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi" />
    <link rel="stylesheet" href="/web/res/css/xadmin.css">
    <script src="/web/res/lib/layui/layui.js" charset="utf-8"></script>
    <script src="/web/res/lib/layui_exts/excel.js" charset="utf-8"></script>
    <script type="text/javascript" src="/web/res/js/xadmin.js"></script>
    <script type="text/javascript" src="/web/res/js/common.js"></script>
</head>

<body>
<div class="x-nav">
        <span class="layui-breadcrumb">
            <a href="">首页</a>
            <a href="">用户管理</a>
            <a><cite>用户管理列表</cite></a>
        </span>
    <a class="layui-btn layui-btn-small" style="line-height:1.6em;margin-top:3px;float:right"
       onclick="location.reload()" title="刷新">
        <i class="layui-icon layui-icon-refresh" style="line-height:30px"></i></a>
</div>
<div class="layui-fluid">
    <div class="layui-row layui-col-space15">
        <div class="layui-col-md12">
            <div class="layui-card">
                <div class="layui-card-body ">
                    <form class="layui-form layui-col-space5" type="post"  action="/after/org/orgList">

                        选择时间：
                        <div class="layui-input-inline layui-show-xs-block">
                            <input class="layui-input" placeholder="日期" autocomplete="off" value="${(time)!''}" name="time"
                                   id="time">
                        </div>


                        <div class="layui-input-inline layui-show-xs-block">
                            <button class="layui-btn"  lay-submit lay-filter="search" >
                                <i class="layui-icon">&#xe615;</i>搜索
                            </button>
                        </div>

                    </form>
                </div>

                <div class="layui-card-body"  style="overflow:auto">
                    <table class="layui-table layui-form tableH" lay-size="sm"  id="tab">
                        <thead>
                        <tr>
                            <th style="min-width:40px;">用户id</th>
                            <th style="min-width:40px;">登录名</th>
                            <th style="min-width:40px;">用户昵称</th>
                            <th style="min-width:40px;">邀请码</th>
                            <th style="min-width:40px;">当天礼物收入</th>
                            <th style="min-width:40px;">礼物总收入</th>
                            <th style="min-width:40px;">当天音视频收入</th>
                            <th style="min-width:40px;">音视频总收入</th>
                            <th style="min-width:40px;">操作</th>

                        </tr>
                        </thead>
                        <tbody>
                        <#if list?? && (list?size > 0) >
                        <#list list as user>
                        <tr>
                            <td>${(user.id?c)!''}</td>
                            <td>${(user.loginname)!''}</td>
                            <td>${(user.name)!''}</td>
                            <td>${(user.code)!''}</td>
                            <td>${(user.todayGiftNum)!''}</td>
                            <td>${(user.allGiftNum)!''}</td>
                            <td>${(user.todayRtcNum)!''}</td>
                            <td>${(user.allRtcNum)!''}</td>
                            <td>
                                <button class="layui-btn layui-btn-xs layui-btn-normal" onclick="xadmin.open('团队','/after/org/detailList?code=${(user.code)!''}',1500,800)" >
                                  <i class="layui-icon layui-icon-edit">团队</i>
                                </button>
                            </td>
                        </tr>
                        </#list>
                        <#else>
                        <tr>
                            <td colspan="20" style="text-align: center;">暂无记录</td>
                        </tr>
                         </#if>
                         </tbody>
                     </table>
                </div>



                <!-- 分页条 -->
                <div id="pager" style="text-align: center;"></div>


            </div>
         </div>
    </div>
</div>



</body>


<script>
    layui.use(['laydate'], function () {
        let $ = layui.$;
        var laydate = layui.laydate;

        //执行一个laydate实例
        laydate.render({
            elem: '#time' //指定元素
        });

    });

</script>

<!-- 注意：如果你直接复制所有代码到本地，上述js路径需要改成你本地的 -->
<script>
    layui.use(['laypage', 'layer', 'form' ], function(){
        let $ = layui.$;
        var laypage = layui.laypage
            ,form = layui.form
            ,layer = layui.layer;

        laypage.render({
            elem: 'pager'
            ,count: ${(splitPage.totalCount?c)!''}
            ,limit: ${(splitPage.pageSize?c)!''}
            ,curr: ${(splitPage.pageIndex?c)!''}
            ,layout: ['count', 'prev', 'page', 'next', 'limit', 'refresh', 'skip']
            ,jump: function(obj, first){
                //首次不执行
                if(!first){
                    var myform = document.forms[0];
                    var pageIndex = document.createElement("input");
                    pageIndex.name="pageIndex";
                    pageIndex.type="hidden";
                    pageIndex.value=obj.curr;
                    myform.appendChild(pageIndex);

                    var pageSize = document.createElement("input");
                    pageSize.name="pageSize";
                    pageSize.type="hidden";
                    pageSize.value=obj.limit;
                    myform.appendChild(pageSize);
                    $("button[lay-submit]:eq(0)").click();

                }
            }
        });
    });
</script>


</html>
